/*
* Copyright 2024 NXP
* NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



void setup_scr_main(lv_ui *ui)
{
	//Write codes main
	ui->main = lv_obj_create(NULL);
	lv_obj_set_size(ui->main, 160, 128);
	lv_obj_set_scrollbar_mode(ui->main, LV_SCROLLBAR_MODE_OFF);

	//Write style for main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->main, lv_color_hex(0x85c58e), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->main, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes main_m_btn_next
	ui->main_m_btn_next = lv_btn_create(ui->main);
	ui->main_m_btn_next_label = lv_label_create(ui->main_m_btn_next);
	lv_label_set_text(ui->main_m_btn_next_label, "下页");
	lv_label_set_long_mode(ui->main_m_btn_next_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->main_m_btn_next_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->main_m_btn_next, 0, LV_STATE_DEFAULT);
	lv_obj_set_width(ui->main_m_btn_next_label, LV_PCT(100));
	lv_obj_set_pos(ui->main_m_btn_next, 105, 105);
	lv_obj_set_size(ui->main_m_btn_next, 40, 17);

	//Write style for main_m_btn_next, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->main_m_btn_next, lv_color_hex(0x2a1ff6), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_next, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->main_m_btn_next, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_color(ui->main_m_btn_next, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_side(ui->main_m_btn_next, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->main_m_btn_next, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->main_m_btn_next, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->main_m_btn_next, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style for main_m_btn_next, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_next, lv_color_hex(0xff0096), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_next, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->main_m_btn_next, 2, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_color(ui->main_m_btn_next, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_side(ui->main_m_btn_next, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_color(ui->main_m_btn_next, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_font(ui->main_m_btn_next, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_FOCUSED);

	//Write style for main_m_btn_next, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_next, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_next, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_border_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_radius(ui->main_m_btn_next, 5, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_color(ui->main_m_btn_next, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_font(ui->main_m_btn_next, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style for main_m_btn_next, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_bg_color(ui->main_m_btn_next, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_next, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_border_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_radius(ui->main_m_btn_next, 5, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_color(ui->main_m_btn_next, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_font(ui->main_m_btn_next, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_CHECKED);

	//Write style for main_m_btn_next, Part: LV_PART_MAIN, State: LV_STATE_DISABLED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_bg_color(ui->main_m_btn_next, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_next, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_border_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_radius(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_next, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_color(ui->main_m_btn_next, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_font(ui->main_m_btn_next, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_opa(ui->main_m_btn_next, 255, LV_PART_MAIN|LV_STATE_DISABLED);

	//Write codes main_m_btn_temp
	ui->main_m_btn_temp = lv_btn_create(ui->main);
	ui->main_m_btn_temp_label = lv_label_create(ui->main_m_btn_temp);
	lv_label_set_text(ui->main_m_btn_temp_label, "温度");
	lv_label_set_long_mode(ui->main_m_btn_temp_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->main_m_btn_temp_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->main_m_btn_temp, 0, LV_STATE_DEFAULT);
	lv_obj_set_width(ui->main_m_btn_temp_label, LV_PCT(100));
	lv_obj_set_pos(ui->main_m_btn_temp, 105, 36);
	lv_obj_set_size(ui->main_m_btn_temp, 44, 25);

	//Write style for main_m_btn_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->main_m_btn_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->main_m_btn_temp, lv_color_hex(0x2a1ff6), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_temp, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->main_m_btn_temp, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_opa(ui->main_m_btn_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_color(ui->main_m_btn_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_side(ui->main_m_btn_temp, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->main_m_btn_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->main_m_btn_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->main_m_btn_temp, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->main_m_btn_temp, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->main_m_btn_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->main_m_btn_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style for main_m_btn_temp, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_temp, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_temp, lv_color_hex(0xff0096), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_temp, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->main_m_btn_temp, 2, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_opa(ui->main_m_btn_temp, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_color(ui->main_m_btn_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_side(ui->main_m_btn_temp, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->main_m_btn_temp, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_temp, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_color(ui->main_m_btn_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_font(ui->main_m_btn_temp, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_temp, 255, LV_PART_MAIN|LV_STATE_FOCUSED);

	//Write codes main_m_btn_ira
	ui->main_m_btn_ira = lv_btn_create(ui->main);
	ui->main_m_btn_ira_label = lv_label_create(ui->main_m_btn_ira);
	lv_label_set_text(ui->main_m_btn_ira_label, "红外");
	lv_label_set_long_mode(ui->main_m_btn_ira_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->main_m_btn_ira_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->main_m_btn_ira, 0, LV_STATE_DEFAULT);
	lv_obj_set_width(ui->main_m_btn_ira_label, LV_PCT(100));
	lv_obj_set_pos(ui->main_m_btn_ira, 56, 36);
	lv_obj_set_size(ui->main_m_btn_ira, 44, 25);

	//Write style for main_m_btn_ira, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->main_m_btn_ira, lv_color_hex(0x2a1ff6), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_ira, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->main_m_btn_ira, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_color(ui->main_m_btn_ira, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_side(ui->main_m_btn_ira, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->main_m_btn_ira, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->main_m_btn_ira, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->main_m_btn_ira, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style for main_m_btn_ira, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_ira, lv_color_hex(0xff0096), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_ira, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->main_m_btn_ira, 2, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_color(ui->main_m_btn_ira, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_side(ui->main_m_btn_ira, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_color(ui->main_m_btn_ira, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_font(ui->main_m_btn_ira, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_FOCUSED);

	//Write style for main_m_btn_ira, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_ira, lv_color_hex(0xff0096), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_ira, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_border_width(ui->main_m_btn_ira, 2, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_border_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_border_color(ui->main_m_btn_ira, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_border_side(ui->main_m_btn_ira, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_radius(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_color(ui->main_m_btn_ira, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_font(ui->main_m_btn_ira, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style for main_m_btn_ira, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_bg_color(ui->main_m_btn_ira, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_ira, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_border_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_radius(ui->main_m_btn_ira, 5, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_color(ui->main_m_btn_ira, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_font(ui->main_m_btn_ira, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_CHECKED);

	//Write style for main_m_btn_ira, Part: LV_PART_MAIN, State: LV_STATE_DISABLED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_bg_color(ui->main_m_btn_ira, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_ira, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_border_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_radius(ui->main_m_btn_ira, 5, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_ira, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_color(ui->main_m_btn_ira, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_font(ui->main_m_btn_ira, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_opa(ui->main_m_btn_ira, 255, LV_PART_MAIN|LV_STATE_DISABLED);

	//Write codes main_m_btn_time
	ui->main_m_btn_time = lv_btn_create(ui->main);
	ui->main_m_btn_time_label = lv_label_create(ui->main_m_btn_time);
	lv_label_set_text(ui->main_m_btn_time_label, "时间");
	lv_label_set_long_mode(ui->main_m_btn_time_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->main_m_btn_time_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->main_m_btn_time, 0, LV_STATE_DEFAULT);
	lv_obj_set_width(ui->main_m_btn_time_label, LV_PCT(100));
	lv_obj_set_pos(ui->main_m_btn_time, 7, 36);
	lv_obj_set_size(ui->main_m_btn_time, 44, 25);

	//Write style for main_m_btn_time, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->main_m_btn_time, lv_color_hex(0x2a1ff6), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_time, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->main_m_btn_time, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_color(ui->main_m_btn_time, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_side(ui->main_m_btn_time, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->main_m_btn_time, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->main_m_btn_time, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->main_m_btn_time, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write style for main_m_btn_time, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_time, lv_color_hex(0xff0096), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_time, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->main_m_btn_time, 2, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_color(ui->main_m_btn_time, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_border_side(ui->main_m_btn_time, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_color(ui->main_m_btn_time, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_font(ui->main_m_btn_time, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_FOCUSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_FOCUSED);

	//Write style for main_m_btn_time, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_bg_color(ui->main_m_btn_time, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_time, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_border_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_radius(ui->main_m_btn_time, 5, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_color(ui->main_m_btn_time, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_font(ui->main_m_btn_time, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_PRESSED);
	lv_obj_set_style_text_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_PRESSED);

	//Write style for main_m_btn_time, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_bg_color(ui->main_m_btn_time, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_time, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_border_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_radius(ui->main_m_btn_time, 5, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_color(ui->main_m_btn_time, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_font(ui->main_m_btn_time, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_CHECKED);
	lv_obj_set_style_text_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_CHECKED);

	//Write style for main_m_btn_time, Part: LV_PART_MAIN, State: LV_STATE_DISABLED.
	lv_obj_set_style_bg_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_bg_color(ui->main_m_btn_time, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_bg_grad_dir(ui->main_m_btn_time, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_border_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_radius(ui->main_m_btn_time, 5, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_shadow_width(ui->main_m_btn_time, 0, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_color(ui->main_m_btn_time, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_font(ui->main_m_btn_time, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DISABLED);
	lv_obj_set_style_text_opa(ui->main_m_btn_time, 255, LV_PART_MAIN|LV_STATE_DISABLED);

	//Write codes main_m_label_func
	ui->main_m_label_func = lv_label_create(ui->main);
	lv_label_set_text(ui->main_m_label_func, "功能(function)");
	lv_label_set_long_mode(ui->main_m_label_func, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->main_m_label_func, 32, 13);
	lv_obj_set_size(ui->main_m_label_func, 97, 13);

	//Write style for main_m_label_func, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->main_m_label_func, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->main_m_label_func, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->main_m_label_func, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->main_m_label_func, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->main_m_label_func, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->main_m_label_func, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//The custom code of main.
	

	//Update current screen layout.
	lv_obj_update_layout(ui->main);

	//Init events for screen.
	events_init_main(ui);
}
